/*! lzf */

!function (s) {
    s.fn.extend({
        placeholder: function (l) {
            return l = s.extend({
                placeholderColor: "#ACA899",
                isUseSpan: !1,
                onInput: !0
            }, l), s(this).each(function () {
                var e = this;
                if (void 0 !== s(e).attr("placeholder")) {
                    var t = s(e).attr("placeholder"), o = s(e).css("color");
                    if (0 == l.isUseSpan) s(e).focus(function () {
                        new RegExp("^" + t + "$|^$").test(s(e).val()) && s(e).val("").css("color", o)
                    }).blur(function () {
                        s(e).val() == t ? s(e).css("color", o) : 0 == s(e).val().length && s(e).val(t).css("color", l.placeholderColor)
                    }).trigger("blur"); else {
                        var n = s('<span class="wrap-placeholder" style="position:absolute; display:inline-block; overflow:hidden; color:' + l.placeholderColor + "; width:" + s(e).outerWidth() + "px; height:" + s(e).outerHeight() + 'px;">' + t + "</span>");
                        if (n.css({
                            "margin-left": s(e).css("margin-left"),
                            "margin-top": s(e).css("margin-top"),
                            "font-size": s(e).css("font-size"),
                            "font-family": s(e).css("font-family"),
                            "font-weight": s(e).css("font-weight"),
                            "padding-left": parseInt(s(e).css("padding-left")) + 2 + "px",
                            left: "4px",
                            "line-height": "textarea" == e.nodeName.toLowerCase() ? s(e).css("line-weight") : s(e).outerHeight() + "px",
                            "padding-top": "textarea" == e.nodeName.toLowerCase() ? parseInt(s(e).css("padding-top")) + 2 : 0
                        }), s(e).before(n.click(function () {
                            s(e).trigger("focus")
                        })), 0 != s(e).val().length && n.hide(), l.onInput) {
                            var i = "object" == typeof e.oninput ? "input" : "propertychange";
                            s(e).bind(i, function () {
                                n[0].style.display = 0 != s(e).val().length ? "none" : "inline-block"
                            })
                        } else s(e).focus(function () {
                            n.hide()
                        }).blur(function () {
                            /^$/.test(s(e).val()) && n.show()
                        })
                    }
                }
            }), this
        }
    })
}(jQuery), $(function () {
    $("input").placeholder({isUseSpan: !0})
});
var lt_ie10 = !0;